﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

namespace TdxConnector
{
    class Message
    {
        public Guid Id { get; set; }
        public AutoResetEvent WaitHandle { get; set; }

        public Message()
        {
            Id = Guid.NewGuid();
            WaitHandle = new AutoResetEvent(false);
        }
    }

    class Message<TResult> : Message
    {
        public TResult Result { get; set; }
    }
}
